package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.CheerMomentMapper;
import com.hpjpw.ido.domain.CheerMoment;
import com.hpjpw.ido.service.ICheerMomentService;

/**
 * 加油站Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-08
 */
@Service
public class CheerMomentServiceImpl implements ICheerMomentService 
{
    @Autowired
    private CheerMomentMapper cheerMomentMapper;

    /**
     * 查询加油站
     * 
     * @param id 加油站ID
     * @return 加油站
     */
    @Override
    public CheerMoment selectCheerMomentById(Long id)
    {
        return cheerMomentMapper.selectCheerMomentById(id);
    }

    /**
     * 查询加油站列表
     * 
     * @param cheerMoment 加油站
     * @return 加油站
     */
    @Override
    public List<CheerMoment> selectCheerMomentList(CheerMoment cheerMoment)
    {
        return cheerMomentMapper.selectCheerMomentList(cheerMoment);
    }

    /**
     * 新增加油站
     * 
     * @param cheerMoment 加油站
     * @return 结果
     */
    @Override
    public int insertCheerMoment(CheerMoment cheerMoment)
    {
        return cheerMomentMapper.insertCheerMoment(cheerMoment);
    }

    /**
     * 修改加油站
     * 
     * @param cheerMoment 加油站
     * @return 结果
     */
    @Override
    public int updateCheerMoment(CheerMoment cheerMoment)
    {
        return cheerMomentMapper.updateCheerMoment(cheerMoment);
    }

    /**
     * 批量删除加油站
     * 
     * @param ids 需要删除的加油站ID
     * @return 结果
     */
    @Override
    public int deleteCheerMomentByIds(Long[] ids)
    {
        return cheerMomentMapper.deleteCheerMomentByIds(ids);
    }

    /**
     * 删除加油站信息
     * 
     * @param id 加油站ID
     * @return 结果
     */
    @Override
    public int deleteCheerMomentById(Long id)
    {
        return cheerMomentMapper.deleteCheerMomentById(id);
    }
}
